<%@outputencoding="UTF-8"%>
<%@inputencoding="UTF-8"%>
<%
# go for aggressive HTTP caching (1 hour's worth)
import datetime
self.setHeader("Last-Modified",self.Request.getParameter('lastmodified',''))
self.setHeader("Cache-Control", self.Request.getParameter('cachecontrol','public, max-age=3600'))
self.setHeader("Expires", self.Request.getParameter('expires',(datetime.datetime.utcnow() + datetime.timedelta(seconds=3600)).strftime('%a, %d %b %Y %H:%M:%S GMT')))
self.setHeader("Pragma",'')
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">
	<title>Yaki - <%=self.Request.getParameter('title','K2 Template')%></title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="generator" content="Yaki" />
	<meta name="template" content="K2 Beta Two 0.95 RC1" />
 	<meta name="description" content="" />
  
	<link rel="stylesheet" type="text/css" media="screen" href="/themes/k2/css/style.css" />
	<link rel="stylesheet" type="text/css" media="screen" href="/themes/k2/css/wiki.css" />
	<link rel="stylesheet" type="text/css" media="print"  href="/themes/k2/css/print.css" />
	<link rel="stylesheet" type="text/css" media="screen" href="/themes/k2/css/rollingarchives.css" />
  <link rel="stylesheet" type="text/css" media="screen" href="/themes/k2/css/ela.css" />
  <link rel="stylesheet" type="text/css" media="screen" href="/themes/vader/css/vader.css" />
		
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="/feeds/blog" />
  <script language="javascript" type="text/javascript" src="/js/jquery.js"></script>
  <script language="javascript" type="text/javascript" src="/js/jquery.flash.js"></script>

<!--
	<link rel='archives' title='January 2007' href='http://getk2.com/2007/01/' />
-->

<style type='text/css'>
.hilite {
	background-color: #ddd;
}
</style>
<body class="wordpress k2 home" >
<div id="page">
	<div id="header">

    <h1><a href="/space/HomePage"><%=self.Request.getParameter('site_name', 'Yaki Wiki Engine')%></a></h1>
    <p class="description"><%=self.Request.getParameter('site_description','Powered by Python. Dipped in BeautifulSoup. Flavored with Snakelets.')%></p>

	<ul class="menu">
	
<%
links = [
  # must change these to regexps
  ['HomePage','Home Page', 'Home'],
  ['meta/RecentChanges','Recent Changes', 'Recent Changes'],
  ['docs','Documentation', 'Docs'],
  ['docs/Bugs','Bugs', 'Bugs']
]

for i in links:
  if i[0] == self.Request.getParameter('path', 'meta/EmptyPage'):
    css = "current_page_item"
  else:
    css = "page_item"
  self.write( '<li class="%s"><a href="/space/%s" title="%s">%s</a></li>' % (css, i[0], i[1], i[2]))  
%>
	</ul>
	</div>
<hr />

<div class="content">
  <div id="primary">
	<div id="current-content">
    <div id="primarycontent" class="hfeed">
          <%=self.Request.getParameter('postbody','')%>
    </div><!-- #primarycontent .hfeed -->
    </div> <!-- #current-content -->
    <div id="dynamic-content"></div>
  </div> <!-- #primary -->
  <hr />
  <div class="secondary">
  <div id="search"><h2>Search</h2>	
<form method="get" id="livesearch-form" action="/space/meta/FullTextSearch">
	<input type="text" id="livesearch" name="q" tabindex="1" autocomplete="off" value="Search" 
	onblur="if(this.value == '') {this.value = 'Search';}"
     onfocus="if(this.value == 'Search') {this.value = '';}"
     onmouseout="window.status=''; return true;" 
     onmouseover="window.status='Search'; return true;" />
	<!--<img id="livesearch-spinner" src="/img/spinner.gif" alt="Searching...">-->
	<span id="livesearch-msg"></span>
	<input type="submit" id="searchsubmit" value="go" />
</form>
  </div>
		<div class="sb-links">
		<ul>
				<li id="linkcat-6" class="linkcat">
				<h2>Yaki Recommends:</h2>
	<ul>
    <li><a href="http://jquery.com">jQuery</a></li>
    <li><a href="http://www.crummy.com/software/BeautifulSoup/documentation.html">BeautifulSoup</a></li>
    <li><a href="http://snakelets.sourceforge.net/manual/index.html">Snakelets</a></li>
	</ul>
</li>
		</ul>
	</div>
</div>
<div class="clear"></div>
</div> <!-- .content -->
<div class="clear"></div>
</div> <!-- Close Page -->
<hr />
<p id="footer"><small>
	Yaki is powered by <a href="/space/Snakelets" title="">Snakelets</a> and <a href="http://getk2.com/" title="Loves you like a kitten.">K2<!--Beta Two 0.95 RC1--></a><br /> 
		<a href="/feeds/blog">Blog Entries</a> and <a href="/feeds/main">Wiki Entries</a>
	<!-- 0 queries. there's no database :) -->
</small></p>
</body>
</html> 
